/**
 * @Author lukangle
 * @2015年10月17日@下午6:06:35
 */
package com.smooth.common.site.common.enums;

public enum SiteCodeEnums {
	LOGIN_FAILED(4005, "登录失败%S"),
	STATUS_FAILED(4006, "账户异常 %S"),
	NO_COMP(4006, "无此商户信息%S"),
	COMP_EXIST(4008, "%S该商户已经存在，请直接登录"),
	
	JIFEN_NOENOUGH(7001,"%S 积分不足"),
	param_error(9007, "参数错误%S"),
	DB_ERROR(9008,"%S 数据更新失败，请重试"),
	
	STOCK_NOT_ENOUGH(8001,"%S 库存不足"),
	
	AUTH_NOT_ENOUGH(8009,"%S 权限不足"),
	
	JOB_REAPPLY(4009,"%S 该职位已经申请，请勿重复申请"),
	
	COMP_NOTCOMPLETE(4019,"请完善企业信息 %S"),
	
	zhiwei_notengouth(8101,"%S 职位库存不足"),
	;

	
	public int value;
	public String name;

	SiteCodeEnums(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static SiteCodeEnums getType(int value) {
		SiteCodeEnums[] finwayStatus = SiteCodeEnums.values();
		for (SiteCodeEnums fin : finwayStatus) {
			if (fin.value == value) {
				return fin;
			}
		}
		return null;
	}
}
